import { useCookies } from "@vueuse/integrations/useCookies"
import layoutEnum from "@/enums/layoutEnum";
import themeEnum from "@/enums/themeEnum";
import languageEnum from "@/enums/languageEnum";

const cookies = useCookies()
const token = cookies.get('token') && cookies.get('token')!=''?cookies.get('token'):''

// 检查用户的操作系统是否使用深色模式
const mediaQueryList = window.matchMedia("(prefers-color-scheme: dark)");

const defaultSettings = {
  //站点
  domain:"www.xinshenghe999.com",
  //站点名称
  title: "新盛合环保设备",
  //秘钥
  token: token,
  // 是否显示租户设置
  showSettings: false,
  // 布局方式，默认为左侧布局
  layout: layoutEnum.LEFT,
  // 主题，根据操作系统的色彩方案自动选择
  theme: mediaQueryList.matches ? themeEnum.DARK : themeEnum.LIGHT,
  // 语言
  language: languageEnum.ZH_CN,
  // 主题颜色
  themeColor: "#4080FF",
  // error color
  errorColor: "#dc2626",
  // primary color
  primary: "var(--el-color-primary)",
  // danger color
  danger: "var(--el-color-danger)",
  // info color
  info: "var(--el-color-info)",
  // 是否开启水印
  watermarkEnabled: false,

}

export default defaultSettings